<?php

class m130721_033356_create extends CDbMigration {

	private $_table = 'channels';

	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'sequence'=>'integer',
			'name'=>'string',
			'rule'=>'string',
			'createdAt'=>'datetime',
			'updatedAt'=>'datetime',
		);
		$this->createTable($this->_table, $columns);
	}

	public function safeDown() {
		$this->dropTable($this->_table);
	}
	
}